Destroy the cairo surface when done with it. Plugs a fairly large leak in
authorKjartan Maraas <kmaraas@gnome.org>
Fri, 10 Jun 2005 19:53:47 +0000 (19:53 +0000)
committerKjartan Maraas <kmaraas@src.gnome.org>
Fri, 10 Jun 2005 19:53:47 +0000 (19:53 +0000)
2005-06-10  Kjartan Maraas  <kmaraas@gnome.org>

* gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
cairo surface when done with it. Plugs a fairly large leak in
some cases.
==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
826 blocks are definitely lost in loss record 25239 of 25250
Like this from nautilus.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gdk/gdkcairo.c

index f65ea02c01704982f71c1ca8189dc14247806975..bb100beb0b88477bfb7f41c4bd5023df7868e959 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-06-10  Kjartan Maraas  <kmaraas@gnome.org>
+
+       * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
+       cairo surface when done with it. Plugs a fairly large leak in
+       some cases.
+       ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
+       826 blocks are definitely lost in loss record 25239 of 25250
+       Like this from nautilus.
+
 2005-06-10  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtk.symbols
index f65ea02c01704982f71c1ca8189dc14247806975..bb100beb0b88477bfb7f41c4bd5023df7868e959 100644 (file)
@@ -1,3 +1,12 @@
+2005-06-10  Kjartan Maraas  <kmaraas@gnome.org>
+
+       * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
+       cairo surface when done with it. Plugs a fairly large leak in
+       some cases.
+       ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
+       826 blocks are definitely lost in loss record 25239 of 25250
+       Like this from nautilus.
+
 2005-06-10  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtk.symbols
index f65ea02c01704982f71c1ca8189dc14247806975..bb100beb0b88477bfb7f41c4bd5023df7868e959 100644 (file)
@@ -1,3 +1,12 @@
+2005-06-10  Kjartan Maraas  <kmaraas@gnome.org>
+
+       * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
+       cairo surface when done with it. Plugs a fairly large leak in
+       some cases.
+       ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
+       826 blocks are definitely lost in loss record 25239 of 25250
+       Like this from nautilus.
+
 2005-06-10  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtk.symbols
index 4e498546faca2b2a6cde5188a801773a4b83de99..267fd1676dd46d8e6b222a12353401f515ad7c58 100644 (file)
@@ -215,6 +215,7 @@ gdk_cairo_set_source_pixbuf (cairo_t   *cr,
     }
 
   cairo_set_source_surface (cr, surface, pixbuf_x, pixbuf_y);
+  cairo_surface_destroy (surface);
 }
 
 #define __GDK_CAIRO_C__